package com.king.designpatterns.hybriddesignpattern.hybriddesignpattern.chainofcommandandresponsibility;

/**
 * LSCommand类代表ls命令
 *
 * @author king
 * @date 2021-06-11 15:35
 */
public class LSCommand extends Command{
    @Override
    public String execute(CommandVO vo) {
        // 返回链表的首节点
        return buildChain(AbstractLS.class).get(0).handleMessage(vo);
    }
}
